package com.accp.jboa.dao;

import com.accp.jboa.pojo.Leave;
import com.accp.jboa.vo.EmployeeAndDepartmentAndLeaveAndStatus;
import com.accp.jboa.vo.Leaves;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LeaveMapper {
    int deleteByPrimaryKey(Integer leaveid);

    int insert(Leave record);

    int insertSelective(Leave record);

    Leave selectByPrimaryKey(Integer leaveid);

    int updateByPrimaryKeySelective(Leave record);

    int updateByPrimaryKey(Leave record);

    List<Leaves> selectbyid(@Param("id") Integer id, @Param("startTime") String startTime, @Param("endTime") String endTime);

    EmployeeAndDepartmentAndLeaveAndStatus select(@Param("id") Integer id);
}